﻿alter table [dbo].[Exception] add constraint [FK_Exception_Thread] foreign key (ThreadId) references [Thread](ThreadId)

